package com.baicaoyuan.web.repository;


import com.baicaoyuan.web.model.StockPeriodDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 功能描述：需求发布
 *
 * @author 罗富祥
 * 创建时间： 2018/1/4
 * 版权：
 */
@Repository
public interface StockPeriodRepository extends JpaRepository<StockPeriodDO, Long> {

    /**
     * 获取分红期列表
     *
     * @return
     */
    @Query(value = "select * from t_stock_period order by create_time desc ", nativeQuery = true)
    List<StockPeriodDO> getStockPeriod();
}
